package com.hualan.mapper;

import com.hualan.domain.Consultreply;
import com.hualan.domain.User;

import java.util.List;

/**
* @author 29524
* @description 针对表【consultreply(咨询回复表，存储用户对咨询问题的回复)】的数据库操作Mapper
* @createDate 2024-09-06 14:15:40
* @Entity com.hualan.domain.Consultreply
*/
public interface ConsultreplyMapper {

    int insert(Consultreply record);

    Consultreply selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Consultreply record);

    int updateByPrimaryKey(Consultreply record);

    //查询所有问题回复
    List<Consultreply> selectAllreply();
    //模糊搜索
    List<Consultreply> selectAlllike(String replytext);
    //新增问题
    int insertSelective(Consultreply record);
    //编辑回复
    int updateReply(Consultreply consultreply);
    //删除回复
    int deleteByPrimaryKey(Long id);

    //查询所有userId,userName
    List<User> selectAllUserIdUserName();

}
